#pragma dynimport DeleteCriticalSection DeleteCriticalSection "kernel32.dll"
#pragma dynimport EnterCriticalSection EnterCriticalSection "kernel32.dll"
#pragma dynimport ExitProcess ExitProcess "kernel32.dll"
#pragma dynimport FreeLibrary FreeLibrary "kernel32.dll"
#pragma dynimport GetLastError GetLastError "kernel32.dll"
#pragma dynimport GetModuleHandleA GetModuleHandleA "kernel32.dll"
#pragma dynimport GetProcAddress GetProcAddress "kernel32.dll"
#pragma dynimport InitializeCriticalSection InitializeCriticalSection "kernel32.dll"
#pragma dynimport LeaveCriticalSection LeaveCriticalSection "kernel32.dll"
#pragma dynimport LoadLibraryA LoadLibraryA "kernel32.dll"
#pragma dynimport SetUnhandledExceptionFilter SetUnhandledExceptionFilter "kernel32.dll"
#pragma dynimport TlsGetValue TlsGetValue "kernel32.dll"
#pragma dynimport VirtualProtect VirtualProtect "kernel32.dll"
#pragma dynimport VirtualQuery VirtualQuery "kernel32.dll"
#pragma dynimport __getmainargs __getmainargs "msvcrt.dll"
#pragma dynimport __p__environ __p__environ "msvcrt.dll"
#pragma dynimport __p__fmode __p__fmode "msvcrt.dll"
#pragma dynimport __set_app_type __set_app_type "msvcrt.dll"
#pragma dynimport _cexit _cexit "msvcrt.dll"
#pragma dynimport _iob _iob "msvcrt.dll"
#pragma dynimport _onexit _onexit "msvcrt.dll"
#pragma dynimport _setmode _setmode "msvcrt.dll"
#pragma dynimport _winmajor _winmajor "msvcrt.dll"
#pragma dynimport abort abort "msvcrt.dll"
#pragma dynimport atexit atexit "msvcrt.dll"
#pragma dynimport calloc calloc "msvcrt.dll"
#pragma dynimport free free "msvcrt.dll"
#pragma dynimport fwrite fwrite "msvcrt.dll"
#pragma dynimport memcpy memcpy "msvcrt.dll"
#pragma dynimport printf printf "msvcrt.dll"
#pragma dynimport signal signal "msvcrt.dll"
#pragma dynimport vfprintf vfprintf "msvcrt.dll"
#pragma dynimport url_fopen url_fopen "avformat.dll"
#pragma dynimport av_free_packet av_free_packet "avcodec.dll"
#pragma dynimport av_find_stream_info av_find_stream_info "avformat.dll"
#pragma dynimport av_dup_packet av_dup_packet "avcodec.dll"
#pragma dynimport av_write_header av_write_header "avformat.dll"
#pragma dynimport av_read_frame av_read_frame "avformat.dll"
#pragma dynimport avcodec_get_frame_defaults avcodec_get_frame_defaults "avcodec.dll"
#pragma dynimport avpicture_fill avpicture_fill "avcodec.dll"
#pragma dynimport sws_scale sws_scale "swscale.dll"
#pragma dynimport dump_format dump_format "avformat.dll"
#pragma dynimport av_interleaved_write_frame av_interleaved_write_frame "avformat.dll"
#pragma dynimport av_log_set_level av_log_set_level "avutil.dll"
#pragma dynimport avcodec_find_decoder avcodec_find_decoder "avcodec.dll"
#pragma dynimport avcodec_find_decoder_by_name avcodec_find_decoder_by_name "avcodec.dll"
#pragma dynimport avformat_alloc_context avformat_alloc_context "avformat.dll"
#pragma dynimport av_write_trailer av_write_trailer "avformat.dll"                                                                                                                                                         
#pragma dynimport av_malloc av_malloc "avutil.dll"                                                                                                                                                                       
#pragma dynimport av_register_all av_register_all "avformat.dll"                                                                                                                                                           
#pragma dynimport av_new_stream av_new_stream "avformat.dll"                                                                                                                                                               
#pragma dynimport avcodec_decode_video2 avcodec_decode_video2 "avcodec.dll"                                                                                                                                               
#pragma dynimport av_set_parameters av_set_parameters "avformat.dll"                                                                                                                                                       
#pragma dynimport avcodec_decode_audio3 avcodec_decode_audio3 "avcodec.dll"                                                                                                                                               
#pragma dynimport av_open_input_file av_open_input_file "avformat.dll"                                                                                                                                                     
#pragma dynimport av_compare_ts av_compare_ts "avutil.dll"                                                                                                                                                               
#pragma dynimport avcodec_open avcodec_open "avcodec.dll"                                                                                                                                                                 
#pragma dynimport avcodec_close avcodec_close "avcodec.dll"                                                                                                                                                                 
#pragma dynimport avcodec_get_context_defaults2 avcodec_get_context_defaults2 "avcodec.dll"                                                                                                                                                                 
#pragma dynimport av_init_packet av_init_packet "avcodec.dll"                                                                                                                                                             
#pragma dynimport av_rescale_q av_rescale_q "avutil.dll"                                                                                                                                                                 
#pragma dynimport av_set_string3 av_set_string3 "avutil.dll"                                                                                                                                                             
#pragma dynimport av_get_string av_get_string "avutil.dll"                                                                                                                                                             
#pragma dynimport av_get_bits_per_sample_fmt av_get_bits_per_sample_fmt "avcore.dll"                                                                                                                                                             
#pragma dynimport av_fifo_alloc av_fifo_alloc "avutil.dll"                                                                                                                                                             
#pragma dynimport av_fifo_free av_fifo_free "avutil.dll"
#pragma dynimport av_next_option av_next_option "avutil.dll"
#pragma dynimport av_fifo_space av_fifo_space "avutil.dll"                                                                                                                                                             
#pragma dynimport av_fifo_size av_fifo_size "avutil.dll"                                                                                                                                                             
#pragma dynimport av_fifo_realloc2 av_fifo_realloc2 "avutil.dll"                                                                                                                                                             
#pragma dynimport av_fifo_generic_write av_fifo_generic_write "avutil.dll"                                                                                                                                                             
#pragma dynimport av_fifo_generic_read av_fifo_generic_read "avutil.dll"                                                                                                                                                             
#pragma dynimport av_resample_compensate av_resample_compensate "avcodec.dll"                                                                                                                                                             
#pragma dynimport audio_resample audio_resample "avcodec.dll"                                                                                                                                                             
#pragma dynimport av_audio_resample_init av_audio_resample_init "avcodec.dll"                                                                                                                                                             
#pragma dynimport audio_resample_close audio_resample_close "avcodec.dll"                                                                                                                                                             
#pragma dynimport avpicture_deinterlace avpicture_deinterlace "avcodec.dll"                                                                                                                                                             
#pragma dynimport avcodec_encode_audio avcodec_encode_audio "avcodec.dll"                                                                                                                                                             
#pragma dynimport av_close_input_file av_close_input_file "avformat.dll"                                                                                                                                                   
#pragma dynimport url_fclose url_fclose "avformat.dll"                                                                                                                                                                     
#pragma dynimport avcodec_find_encoder avcodec_find_encoder "avcodec.dll"
#pragma dynimport avcodec_find_encoder_by_name avcodec_find_encoder_by_name "avcodec.dll"
#pragma dynimport av_guess_format av_guess_format "avformat.dll"
#pragma dynimport avcodec_encode_video avcodec_encode_video "avcodec.dll"
#pragma dynimport avpicture_get_size avpicture_get_size "avcodec.dll"
#pragma dynimport avpicture_alloc avpicture_alloc "avcodec.dll"
#pragma dynimport avcodec_alloc_context avcodec_alloc_context "avcodec.dll"
#pragma dynimport avcodec_register_all avcodec_register_all "avcodec.dll"
#pragma dynimport sws_getContext sws_getContext "swscale.dll"
#pragma dynimport av_free av_free "avutil.dll"
#pragma dynimport sws_freeContext sws_freeContext "swscale.dll"
